<template>
  <div class="home">
    <router-view class="page_box" />
    <van-tabbar active-color="#ee0a24" route>
      <!-- replace 不添加到历史记录里面 -->
      <van-tabbar-item icon="wap-home" replace to="/index">首页</van-tabbar-item>
      <van-tabbar-item icon="bars" replace to="/cate">分类</van-tabbar-item>
      <van-tabbar-item icon="cart" replace to="/cart">购物车</van-tabbar-item>
      <van-tabbar-item icon="manager" replace to="/user">我的</van-tabbar-item>
    </van-tabbar>
  </div>
</template>

<script>
export default {
  name: 'HomeView',
  components: {
  },
  data() {
    return {

    }
  }
}
</script>
<style lang="scss" scoped>
.home {
  height: 100%;
}

.page_box {
  height: calc(100% - 50px);
  overflow: auto;
}
</style>
